Registrar
A simple registrar for any registered object. This registrar works similarly to the (Neo)Forge way of doing object registration. Create a namespaced registrar instance with createRegistrar
Example registration pattern, in a registration object:
private val ITEMS: Registrar<Item> = ConfigApi.platform().createRegistrar(MOD_ID, Registries.ITEM)
val MY_ITEM = ITEMS.register("name") { MyItem(Item.Settings()) }
Content copied to clipboard
Scheduled for stability by 0.7.0
Author
fzzyhmstrs
Since
0.5.9